import axios from "@/tool/axios";
// 角色列表
export const getRoles = () => axios.get("roles")
// 添加用户
export const addRoles = (obj) => axios.post("roles",obj)
// 删除用户
export const delRoles = (id) => axios.delete(`roles/${id.id}`)
// 根据 ID 查询角色
export const byidRoles = (id) => axios.get(`roles/${id}`)
// 编辑用户
export const editRoles = (obj) => axios.put(`roles/${obj.id}`,obj)